
from django.conf.urls import url,include
from django.contrib import admin

from . import  views
urlpatterns = [


    url(r'^index/$', views.index),
    url(r'^brouter/$',views.brouth),

    # url(r'^parameter/(\w+)/(\d+)',views.parameter)
    # 使用正则表达式给参数分组
    url(r'^parameter/(?P<city>\w+)/(?P<year>\d+)',views.parameter),
    # 定义类视图路由
    # url(r'^register/',views.RegisterView.as_view()),
    # 给类视图添加装饰器  方法一
    # url(r'^register/',views.my_decorator(views.RegisterView.as_view())),

    url(r'^register/',views.DemoView.as_view()),

    url(r'^demoview/',views.demo_view),

    url(r'^template/',views.TemplateView.as_view()),

]
